package springFour;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;



//@Resource @Autowired @Qualifier
public class App {
	public static void main(String[] args) {
		ApplicationContext ac = new AnnotationConfigApplicationContext(Config.class);
		// 获取容器中的对象
		LoginAction loginAction = (LoginAction) ac.getBean(LoginAction.class);
		loginAction.UserService();
	}
}
